package com.example.springboot.dao;

import com.example.springboot.vo.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * jpa，也是用了ElasticsearchRestTemplate\RestHighLevelClient
 */
public interface UserRepository extends ElasticsearchRepository<User,String> {

    List<User> findByName(String name);

    List<User> findByNameLikeIgnoreCase(String name);

    List<User> findByDesc(String desc);
}
